package pen_exam.meiidi_0224_03_28;

import java.util.Scanner;

public class Class02_CutLine {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
       String[] Nk =  sc.nextLine().split(" ");
       int N = Integer.parseInt(Nk[0]);
       int K = Integer.parseInt(Nk[1]);
       String[] strs = sc.nextLine().split(" ");
       double[] lines = new double[N];
       double max = 0;
       for (int i = 0; i < N; i++) {
           lines[i] = Double.parseDouble(strs[i]);
           max = Math.max(lines[i],max);
       }
        System.out.printf("%.2f",cutLine(lines, K,max));
    }
    public static double cutLine(double[] lines, int K,double max){
        double l = 0;
        double r = max;
        double ans = 0;
        while(l <= r){
            double M = (l + r)/2;
            if(check(lines, K, M)){
                ans = M;
                l = M + 0.001;
            }else{
                r = M - 0.001;
            }
        }
        return ans;
    }
    public static boolean check(double[] lines, int K,double M){
      int  count = 0;
      for(int i = 0;i < lines.length;i++){
          count += (int) (lines[i] / M);
      }
      return count >= K;
    }
}
